package com.example.demo.controller.excel;

import com.example.demo.entity.ExcelEntity;
import com.example.demo.entity.User;
import com.example.demo.excel.ExcelUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.ArrayList;

/**
 * @author 高俊
 * @create 2021-08-2021/8/26-22:49
 */
@Controller
public class ExcelController {

    @RequestMapping("/export/excel")
    public void exportExcel(){
        ArrayList<User> list = new ArrayList<>();
        list.add(new User(1,"name1",1,"1001"));
        list.add(new User(2,"name2",2,"1002"));
        list.add(new User(3,"name3",3,"1003"));
        list.add(new User(4,"name4",4,"1004"));

    }
}
